Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove dependency on rmw_implementation #102

Merged
merged 2 commits into from
Apr 10, 2020

Conversation

dirk-thomas
Copy link
Member

@dirk-thomas dirk-thomas added the bug Something isn't working label Apr 9, 2020
@dirk-thomas dirk-thomas self-assigned this Apr 9, 2020
@dirk-thomas dirk-thomas changed the title remove dependency on rmw_implementation [WIP] remove dependency on rmw_implementation Apr 9, 2020
Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Seems like the only missing piece is to delete the manually generated typesupport files in rmw_fastrtps_cpp and rmw_fastrpts_dynamic_cpp.

@dirk-thomas dirk-thomas changed the title [WIP] remove dependency on rmw_implementation remove dependency on rmw_implementation Apr 10, 2020
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
@dirk-thomas dirk-thomas force-pushed the dirk-thomas/avoid-generators-depend-on-rmw branch from 8d82073 to e46ff4e Compare April 10, 2020 16:14
… variable passed as an argument

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
set(_typesupport_impls "")
call_for_each_rmw_implementation(accumulate_typesupports)
foreach(_typesupport_impl ${_typesupport_impls})
list_append_unique(TYPESUPPORT_IMPLS ${_typesupport_impl})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous logic was broken. The variable which name is passed in TYPESUPPORT_IMPLS is never set by the macro. This only happened to work if the caller expected the result in _typesupport_impls. 🤯

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, cmake macros are really tricky.

@dirk-thomas dirk-thomas merged commit c637870 into master Apr 10, 2020
@delete-merged-branch delete-merged-branch bot deleted the dirk-thomas/avoid-generators-depend-on-rmw branch April 10, 2020 20:44
@@ -36,8 +35,6 @@
<test_depend>python3-pytest</test_depend>
<test_depend>python_cmake_module</test_depend>
<test_depend>rmw</test_depend>
<test_depend>rmw_implementation</test_depend>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this change led to a failure on the binary job. We're generating messages for tests, but there's no C typesupport available (previously transitively brought in by rmw_implementation).

Here is a proposed fix: #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants